package com.hxzy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/10/11 16:44
 * @Version 1.0
 */
@RefreshScope
@RestController
public class Demo01Controller {

    @Value(value = "${mail.server}")
    private String  mailService;

    @Value(value = "${mail.info}")
    private String mail;

    @GetMapping(value = "/demo01/info")
    public String  demo(){

        return mailService+","+mail;
    }

}
